package com.promise.jokerdream.model.bag

object BagGoodsMapping {
    val goodsMap = mapOf(
        "3001" to "小体力",
        "3002" to "中体力",
        "3003" to "大体力",
        "3004" to "活血散",
        "3006" to "金疮药",
        "3013" to "双倍经验药水",
        "3014" to "经验药水",
        "3015" to "大经验药水",
        "3016" to "大力丸",
        "3017" to "迅捷珠",
        "3018" to "风之息",
        "3019" to "经验药水7天",
        "3020" to "大力丸(赠)",
        "3021" to "迅捷珠(赠)",
        "3022" to "风之息(赠)",
        "3023" to "力量洗刷刷",
        "3024" to "敏捷洗刷刷",
        "3025" to "速度洗刷刷",
        "3029" to "被动经验7天",
        "3030" to "神来拳套(赠)",
        "3036" to "黄金卷轴",
        "3038" to "贡献药水",
        "3040" to "挑战书",
        "3041" to "真体力",
        "3042" to "神秘锦囊",
        "3043" to "被动经验药水",
        "3044" to "剑君锦囊",
        "3045" to "月敏锦囊",
        "3047" to "一等武林宝箱",
        "3048" to "二等武林宝箱",
        "3049" to "三等武林宝箱",
        "3050" to "四等武林宝箱",
        "3055" to "俊猴王锦囊",
        "3060" to "葵花宝典",
        "3061" to "羊魔王锦囊",
        "3062" to "教主锦囊",
        "3063" to "帅帅锦囊",
        "3064" to "姜公锦囊",
        "3065" to "月璇锦囊",
        "3066" to "源大侠锦囊",
        "3067" to "马大师锦囊",
        "3068" to "大色魔锦囊",
        "3069" to "四姑娘锦囊",
        "3070" to "程管锦囊",
        "3074" to "追魂锁链",
        "3076" to "寻斗符",
        "3089" to "还魂丹",
        "3090" to "斗神符",
        "3099" to "悟性丹",
        "3100" to "还童卷轴",
        "3101" to "还童天书",
        "3102" to "移魂符",
        "3104" to "乐斗邪神畅哥锦囊",
        "3105" to "活力药水",
        "3111" to "征战书",
        "3176" to "阅历羊皮卷",
        "3178" to "经验木简",
        "3180" to "新手小王子锦囊",
        "3181" to "传功符",
        "3182" to "曾小三锦囊",
        "3194" to "许愿卡",
        "3212" to "鹅王锦囊",
        "3213" to "盗圣锦囊",
        "3216" to "免战牌",
        "3217" to "抽奖卡",
        "3356" to "贡献小笼包",
        "3371" to "魂珠碎片宝箱",
        "3374" to "无字天书",
        "3375" to "乐斗江湖大礼包",
        "3382" to "土豪金",
        "3386" to "小活力药水",
        "3398" to "大金疮药",
        "3399" to "减伤药水",
        "3400" to "神秘礼盒",
        "3410" to "永恒紫钻",
        "3411" to "宝石金戒",
        "3412" to "翡翠银戒",
        "3447" to "幸运石礼盒",
        "3477" to "孙子兵法",
        "3487" to "巅峰之战二等勋章",
        "3503" to "贡献叉烧包",
        "3549" to "温良恭的信物",
        "3550" to "盛秋月的信物",
        "3554" to "一灯大师锦囊",
        "3567" to "神秘精华",
        "3572" to "竞技场入场券",
        "3573" to "神兵原石",
        "3574" to "软猥金丝",
        "3575" to "凤凰羽毛",
        "3576" to "潜能果实",
        "3631" to "上古玉髓",
        "3636" to "奔流气息",
        "3648" to "沉香",
        "3655" to "大型武器符文石",
        "3656" to "中型武器符文石",
        "3657" to "小型武器符文石",
        "3658" to "投掷武器符文石",
        "3659" to "千年寒铁",
        "3662" to "门派战书",
        "3670" to "武穆遗书",
        "3671" to "资源补给箱",
        "3683" to "徽章符文石",
        "3788" to "坚固的砥石",
        "3789" to "染血的羊皮",
        "3790" to "黄药师锦囊",
        "3863" to "时之沙",
        "3864" to "稳固的磐石",
        "3871" to "百炼钢",
        "3872" to "淬火结晶",
        "3873" to "沧桑的兽骨",
        "3880" to "尖锐的铁器",
        "3881" to "炼气石",
        "3882" to "门派强化书",
        "3886" to "三彩水晶石",
        "3887" to "门派高香",
        "3888" to "四色补天石",
        "3900" to "丐帮堂主7天",
        "3909" to "破碎的铠甲",
        "3910" to "神装之灵",
        "3915" to "粗壮的牛角",
        "3921" to "转转券",
        "3922" to "帮派战鼓",
        "3923" to "奥秘元素",
        "3924" to "四灵魂石",
        "3925" to "锋利的狼牙",
        "3941" to "铭刻宝箱",
        "5087" to "境界丹",
        "5088" to "修为丹",
        "5089" to "真黄金卷轴",
        "5090" to "试炼书",
        "5152" to "神魔残卷",
        "5153" to "突破石",
        "5154" to "夔牛碎片",
        "5155" to "饕餮碎片",
        "5156" to "烛龙碎片",
        "5157" to "黄鸟碎片",
        "5158" to "小猴崽礼包",
        "5159" to "猴队长礼包",
        "5160" to "石猴大礼包",
        "5161" to "猴护法礼包",
        "5162" to "俊猴王礼包",
        "5176" to "元婴力量果",
        "5177" to "元婴敏捷果",
        "5178" to "元婴速度果",
        "5391" to "佣兵天赋丹",
        "5408" to "夺宝卡",
        "5435" to "河图洛书",
        "5436" to "易经八卦",
        "5464" to "熔炼乌金",
        "5535" to "V级万能碎片",
        "5665" to "五星许愿卡",
        "5704" to "武魂符",
        "5705" to "战魂符",
        "5706" to "斗魂符",
        "5707" to "乐斗残卷",
        "5710" to "斗技符小宝箱",
        "5712" to "斗技符大宝箱",
        "5874" to "神将沙漏",
        "5875" to "佣兵碎片小宝箱",
        "5876" to "佣兵碎片中宝箱",
        "5877" to "佣兵碎片大宝箱",
        "5878" to "神将碎片宝箱",
        "6212" to "元婴飞仙果",
        "6276" to "超级速度洗刷刷",
        "6296" to "斗灵石-金",
        "6297" to "斗灵石-木",
        "6298" to "斗灵石-水",
        "6299" to "斗灵石-火",
        "6300" to "斗灵石-土",
        "6301" to "斗灵石-空",
        "6332" to "零经验药水",
        "6347" to "侠士修身录",
        "6348" to "侠士手记",
        "6349" to "重出江湖令",
        "6350" to "柒承碎片",
        "6351" to "断亦碎片",
        "6352" to "燕青碎片",
        "6353" to "李师师碎片",
        "6354" to "古玩寻访帖",
        "6355" to "秘传菜谱",
        "6361" to "黄酒",
        "6364" to "洪七公碎片",
        "6383" to "九品芝麻官碎片",
        "6384" to "圣诞老鹅碎片",
        "6387" to "玄铁令",
        "6424" to "段智兴碎片",
        "6425" to "王重阳碎片",
        "6426" to "黄药师碎片",
        "6427" to "欧阳锋碎片",
        "6478" to "九花玉露丸",
        "6480" to "杜十三碎片",
        "6481" to "李光弼碎片",
        "6496" to "石中剑",
        "6497" to "大型武器符咒",
        "6498" to "中型武器符咒",
        "6592" to "修炼玉",
        "6593" to "熔炉之魂",
        "6594" to "锻造石",
        "6675" to "李莫愁碎片",
        "6680" to "问道石",
        "6681" to "史诗残片",
        "6682" to "传说残片",
        "6683" to "神话残片",
        "6710" to "林朝英碎片",
        "6712" to "小龙女碎片",
        "6713" to "杨过碎片",
        "6725" to "化境符",
        "6732" to "金轮法王碎片",
        "6747" to "六界尊者称号（5天）",
        "6779" to "惊喜锦囊",
        "6780" to "郭靖碎片",
        "6802" to "奇异的画笔",
        "6805" to "梅超风碎片",
        "6810" to "改名卡",
        "6827" to "黄帝内经",
        "6828" to "幻像锦囊",
        "6834" to "周伯通碎片",
        "6844" to "张无忌碎片",
        "6856" to "论剑入场券",
        "6877" to "郭襄碎片",
        "6878" to "补阙粉尘",
        "6879" to "源质合金",
        "6889" to "王处一碎片",
        "6899" to "张三丰碎片",
        "6918" to "周芷若碎片",
        "6954" to "太玄经",
        "6955" to "鉴宝真炎",
        "6959" to "舆图",
        "6967" to "龙岛主碎片",
        "6983" to "斗酒僧碎片",
        "7000" to "秋风扇骨",
        "7001" to "玄铁扇骨",
        "7002" to "桃木扇骨",
        "8026" to "木岛主碎片",
        "8057" to "论武券",
        "8120" to "胡斐碎片",
    )

    // 可打开的宝箱列表
    val treasureChestList = listOf(
        "3047", // 一等武林宝箱
        "3048", // 二等武林宝箱
        "3049", // 三等武林宝箱
        "3050", // 四等武林宝箱
        "3371", // 魂珠碎片宝箱
        "3375", // 乐斗江湖大礼包
        "3400", // 神秘礼盒
        "3447", // 幸运石礼盒
        "3671", // 资源补给箱
        "3790", // 黄药师锦囊
        "3941", // 铭刻宝箱
        "5158", // 小猴崽礼包
        "5159", // 猴队长礼包
        "5160", // 石猴大礼包
        "5161", // 猴护法礼包
        "5162", // 俊猴王礼包
        "5710", // 斗技符小宝箱
        "5712", // 斗技符大宝箱
        "5875", // 佣兵碎片小宝箱
        "5876", // 佣兵碎片中宝箱
        "5877", // 佣兵碎片大宝箱
        "5878", // 神将碎片宝箱
        "6779", // 惊喜锦囊
    )
    
    /**
     * 根据物品名称查找物品ID
     * @param name 物品名称
     * @return 物品ID，如果未找到返回null
     */
    fun getGoodsId(name: String): String? {
        return goodsMap.entries.find { it.value == name }?.key
    }
    
    /**
     * 根据物品ID查找物品名称
     * @param id 物品ID
     * @return 物品名称，如果未找到返回null
     */
    fun getGoodsName(id: String): String? {
        return goodsMap[id]
    }
}